package com.big.common.feign;

import com.big.common.feign.config.FeignConfig;
import com.big.common.feign.exception.FeignExceptionHandler;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * Feign 配置类
 * </p>
 *
 * @author 山归岿
 * @create 2025-06-22-02:41
 */
@EnableFeignClients(basePackages = {
        "com.big.**.api.feign"
})
@Configuration
public class OpenFeignConfig {

    @Bean
    public FeignExceptionHandler feignExceptionHandler() {
        return new FeignExceptionHandler();
    }

    @Bean
    public FeignConfig feignConfig() {
        return new FeignConfig();
    }
}
